package com.hq.ims.data.event;

import com.hq.ims.data.entity.BusiInfo;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * TODO
 *
 * @author jbp
 * @date 2024/11/8
 */
public class BusinfoEvent extends ApplicationEvent {

    /**
     * 添加事件
     */
    public final static String ADD_EVENT = "ADD_EVENT";

    /**
     * 编辑事件
     */
    public final static String EDIT_EVENT = "EDIT_EVENT";

    /**
     * 删除事件
     */
    public final static String DEL_EVENT = "DEL_EVENT";

    /**
     * 撤销审核
     */
    public final static String CANCEL_BUSINFO_AUDIT = "CANCEL_BUSINFO_AUDIT";

    /**
     * 平台审核拒绝
     */
    public final static String PLATFORM_AUDIT_PASS_EVENT = "PLATFORM_AUDIT_PASS_EVENT";

    /**
     * 平台审核不通过
     */
    public final static String PLATFORM_AUDIT_NOT_PASS_EVENT = "PLATFORM_AUDIT_NOT_PASS_EVENT";

    @Getter
    protected String eventType;

    @Getter
    private BusiInfo busiInfo;

    public BusinfoEvent(Object source, BusiInfo busiInfo, String eventType) {
        super(source);
        this.busiInfo = busiInfo;
        this.eventType = eventType;
    }

}
